www.gusucode.com > VC 2D游戏编辑器-源码程序 > VC 2D游戏编辑器-源码程序/code/game_Source/GameLib/other_func.cpp
//Download by http://www.NewXing.com int CheckMMX( ) { int isMMX=0; __asm { mov eax,1; cpuid; test edx,00800000h; jz NotSupport; mov isMMX,1; NotSupport: } return isMMX; } RECT MakeRect(int left,int top,int right,int bottom) { RECT rect; rect.bottom=bottom; rect.left=left; rect.right=right; rect.top=top; return rect; }